<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="./js/vue.js"></script>
  <div id="app">
        {{message}}
        <h2>{{message}},李银河</h2>
        <!--mustache语法中，不仅仅可以直接写变量，也可以写简单表达式-->
        <!--中间加空格-->
        <h2>{{firstName + ' ' + lastName}}</h2>
        <h2>{{firstName}} {{lastName}}</h2>
        <!--counter的两倍-->
        <h2>{{counter * 2}}</h2>
    </div>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                message:'你好呀',
                firstName:'kobe',
                lastName:'bryant',
                counter:'100'
            }
        })
    </script>
</body>
</html>